/**
 *@des 登录注册相关接口
 *@author 237524947@qq.com
 *@blog https://gitee.com/zscat/mallplus/wikis/pages/preview?sort_id=1703736&doc_id=326093
 *@date 2019/11/15 15:14:47
 *@param login.js
 */

// 密码注册
const registerByPass = '/register';

// 密码登录
const loginByPass = '/loginByPassword';

const getOpenId= '/getOpenId';
const appLogin= '/appLogin';
//设置邀请码
const bingInviter= '/bingInviter';
const getJsapiTicket= '/getJsapiTicket';

// 微信授权登录
const wechatH5Login = '/loginByWeiXinCode';

// 微信小程序授权登录
const mpWechatLogin = '/mpWechatLogin';

// 小程序绑定手机号
const bindingAppletPhone = '/wxapp/bindingPhone';


// App微信授权登录
const thirdPartyWechatOpenPlatform = '/tiny-shop/v1/third-party/wechat-open-platform';

// 密码重置
const updatePassword = '/updatepwd/update';
//修改用户支付密码接口
const updatepaypwd = '/updatepaypwd/update';

// 第三方绑定
const authLogin = '/tiny-shop/v1/member/auth/create';

const bindMobile = '/bindMobile';
// 查询绑定状态
const isBindingCheck = '/tiny-shop/v1/member/auth/is-binding';

//会员手机验证码登录注册
const loginBySmsCode = '/loginByCode';

// 获取手机验证码
const smsCode = '/sendmobilecode';

// 退出登录
const logout = '/logout';

// 刷新token
const refreshToken = '/tiny-shop/v1/site/refresh';

// 登录令牌有效性检测
const verifyAccessToken = '/sendmobilecode';

export {updatepaypwd,bingInviter,getJsapiTicket,
	getOpenId,bindMobile,appLogin,bindingAppletPhone,
	registerByPass,
	loginByPass,
	isBindingCheck,
	wechatH5Login,
	mpWechatLogin,
	thirdPartyWechatOpenPlatform,
	authLogin,
	updatePassword,
	smsCode,
	loginBySmsCode,
	logout,
	refreshToken,
	verifyAccessToken

};
